package pl.jtb.ctl.tabory.dao.impl.mybatis.typehandlers;

import java.sql.CallableStatement;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

import org.apache.ibatis.type.JdbcType;
import org.apache.ibatis.type.TypeHandler;

import pl.jtb.ctl.tabory.dao.data.vo.UserRoleVO;

public class UserRoleTH implements TypeHandler<UserRoleVO> {

    @Override
    public UserRoleVO getResult(ResultSet resultSet, String columnName) throws SQLException {
        return null;
    }

    @Override
    public UserRoleVO getResult(CallableStatement cs, int colIndex) throws SQLException {
        return null;
    }

    @Override
    public void setParameter(PreparedStatement ps, int colIndex, UserRoleVO vo, JdbcType type) throws SQLException {
        ps.setLong(colIndex, vo == null ? null : vo.getId());
    }

}
